projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8260cb
)
mpc8220/fec.c: Fix GCC 4.6 build warning
author
Wolfgang Denk
<
[email protected]
>
Fri, 4 Nov 2011 15:55:55 +0000
(15:55 +0000)
committer
Wolfgang Denk
<
[email protected]
>
Mon, 7 Nov 2011 21:16:39 +0000
(22:16 +0100)
Fix:
fec.c: In function 'mpc8220_fec_recv':
fec.c:733:8: warning: variable 'frame' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <
[email protected]
>
arch/powerpc/cpu/mpc8220/fec.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc8220/fec.c
b/arch/powerpc/cpu/mpc8220/fec.c
index bcda8a2b277c23ab6e2d4b2127ba306b15d7662b..2053fea5713410709c1d7b936f360ddf1ed07c7a 100644
(file)
--- a/
arch/powerpc/cpu/mpc8220/fec.c
+++ b/
arch/powerpc/cpu/mpc8220/fec.c
@@
-772,8
+772,8
@@
static int mpc8220_fec_recv (struct eth_device *dev)
frame = (NBUF *) pRbd->dataPointer;
frame_length = pRbd->dataLength - 4;
-#if (0)
- {
+ /* DEBUG code */
+
if (_DEBUG)
{
int i;
printf ("recv data hdr:");
@@
-781,7
+781,7
@@
static int mpc8220_fec_recv (struct eth_device *dev)
printf ("%x ", *(frame->head + i));
printf ("\n");
}
-#endif
+
/*
* Fill the buffer and pass it to upper layers
*/